<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: mets::aspiration_criteria_chain类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classmets_1_1aspiration__criteria__chain.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="classmets_1_1aspiration__criteria__chain-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">mets::aspiration_criteria_chain类 参考<div class="ingroups"><a class="el" href="group__tabu__search.html">Tabu Search</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Function object expressing an aspiration criteria  
 <a href="classmets_1_1aspiration__criteria__chain.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="tabu-search_8hh_source.html">tabu-search.hh</a>&gt;</code></p>
<div class="dynheader">
类 mets::aspiration_criteria_chain 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classmets_1_1aspiration__criteria__chain.png" usemap="#mets::aspiration_5Fcriteria_5Fchain_map" alt=""/>
  <map id="mets::aspiration_5Fcriteria_5Fchain_map" name="mets::aspiration_5Fcriteria_5Fchain_map">
<area href="classmets_1_1best__ever__criteria.html" title="Aspiration criteria implementation." alt="mets::best_ever_criteria" shape="rect" coords="0,56,183,80"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a4ac27009ba58181dc16fdeba7162418c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1aspiration__criteria__chain.html#a4ac27009ba58181dc16fdeba7162418c">aspiration_criteria_chain</a> (<a class="el" href="classmets_1_1aspiration__criteria__chain.html">aspiration_criteria_chain</a> *next=0)</td></tr>
<tr class="memdesc:a4ac27009ba58181dc16fdeba7162418c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="classmets_1_1aspiration__criteria__chain.html#a4ac27009ba58181dc16fdeba7162418c">更多...</a><br /></td></tr>
<tr class="separator:a4ac27009ba58181dc16fdeba7162418c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3b408d6651e2437ed4ac138fe752d5a"><td class="memItemLeft" align="right" valign="top"><a id="ac3b408d6651e2437ed4ac138fe752d5a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1aspiration__criteria__chain.html#ac3b408d6651e2437ed4ac138fe752d5a">aspiration_criteria_chain</a> (const <a class="el" href="classmets_1_1aspiration__criteria__chain.html">aspiration_criteria_chain</a> &amp;other)</td></tr>
<tr class="memdesc:ac3b408d6651e2437ed4ac138fe752d5a"><td class="mdescLeft">&#160;</td><td class="mdescRight">purposely not implemented (see Effective C++) <br /></td></tr>
<tr class="separator:ac3b408d6651e2437ed4ac138fe752d5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72d6400eb21b3eb821892de5e5b0cd07"><td class="memItemLeft" align="right" valign="top"><a id="a72d6400eb21b3eb821892de5e5b0cd07"></a>
<a class="el" href="classmets_1_1aspiration__criteria__chain.html">aspiration_criteria_chain</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1aspiration__criteria__chain.html#a72d6400eb21b3eb821892de5e5b0cd07">operator=</a> (const <a class="el" href="classmets_1_1aspiration__criteria__chain.html">aspiration_criteria_chain</a> &amp;other)</td></tr>
<tr class="memdesc:a72d6400eb21b3eb821892de5e5b0cd07"><td class="mdescLeft">&#160;</td><td class="mdescRight">purposely not implemented (see Effective C++) <br /></td></tr>
<tr class="separator:a72d6400eb21b3eb821892de5e5b0cd07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7e8f2b3fad2faff0df4e137399db0e3"><td class="memItemLeft" align="right" valign="top"><a id="ab7e8f2b3fad2faff0df4e137399db0e3"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1aspiration__criteria__chain.html#ab7e8f2b3fad2faff0df4e137399db0e3">~aspiration_criteria_chain</a> ()</td></tr>
<tr class="memdesc:ab7e8f2b3fad2faff0df4e137399db0e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual destructor. <br /></td></tr>
<tr class="separator:ab7e8f2b3fad2faff0df4e137399db0e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7862e187cddbaf73713b2f4fa9d99c32"><td class="memItemLeft" align="right" valign="top"><a id="a7862e187cddbaf73713b2f4fa9d99c32"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1aspiration__criteria__chain.html#a7862e187cddbaf73713b2f4fa9d99c32">reset</a> ()</td></tr>
<tr class="memdesc:a7862e187cddbaf73713b2f4fa9d99c32"><td class="mdescLeft">&#160;</td><td class="mdescRight">A method to reset this aspiration criteria chain to its original state. <br /></td></tr>
<tr class="separator:a7862e187cddbaf73713b2f4fa9d99c32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d5d9fd8cafb66ffcaafd02c935ed6a2"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1aspiration__criteria__chain.html#a3d5d9fd8cafb66ffcaafd02c935ed6a2">accept</a> (<a class="el" href="classmets_1_1feasible__solution.html">feasible_solution</a> &amp;fs, <a class="el" href="classmets_1_1move.html">move</a> &amp;mov, gol_type evaluation)</td></tr>
<tr class="memdesc:a3d5d9fd8cafb66ffcaafd02c935ed6a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is a callback function from the algorithm that tells us that a move was accepted.  <a href="classmets_1_1aspiration__criteria__chain.html#a3d5d9fd8cafb66ffcaafd02c935ed6a2">更多...</a><br /></td></tr>
<tr class="separator:a3d5d9fd8cafb66ffcaafd02c935ed6a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0d1235906b40e5542bbd79951bc76b0"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1aspiration__criteria__chain.html#ab0d1235906b40e5542bbd79951bc76b0">operator()</a> (<a class="el" href="classmets_1_1feasible__solution.html">feasible_solution</a> &amp;fs, <a class="el" href="classmets_1_1move.html">move</a> &amp;mov, gol_type evaluation) const</td></tr>
<tr class="memdesc:ab0d1235906b40e5542bbd79951bc76b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function that decides if we shoud accept a tabu move  <a href="classmets_1_1aspiration__criteria__chain.html#ab0d1235906b40e5542bbd79951bc76b0">更多...</a><br /></td></tr>
<tr class="separator:ab0d1235906b40e5542bbd79951bc76b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:ac2217cbf77ea17030d1f3bafe54f8a27"><td class="memItemLeft" align="right" valign="top"><a id="ac2217cbf77ea17030d1f3bafe54f8a27"></a>
<a class="el" href="classmets_1_1aspiration__criteria__chain.html">aspiration_criteria_chain</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>next_m</b></td></tr>
<tr class="separator:ac2217cbf77ea17030d1f3bafe54f8a27"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Function object expressing an aspiration criteria </p>
<p>An aspiration criteria is a criteria used to override the tabu list. When the aspiration criteria is met a move is made even if it's in the tabu-list</p>
<p>Aspiration critera can be chained so a criteria can decorate another criteria </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a4ac27009ba58181dc16fdeba7162418c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ac27009ba58181dc16fdeba7162418c">&#9670;&nbsp;</a></span>aspiration_criteria_chain()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">mets::aspiration_criteria_chain::aspiration_criteria_chain </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classmets_1_1aspiration__criteria__chain.html">aspiration_criteria_chain</a> *&#160;</td>
          <td class="paramname"><em>next</em> = <code>0</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructor. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">next</td><td>Optional next criteria in the chain. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;      : next_m(next) </div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    { }</div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a3d5d9fd8cafb66ffcaafd02c935ed6a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d5d9fd8cafb66ffcaafd02c935ed6a2">&#9670;&nbsp;</a></span>accept()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void mets::aspiration_criteria_chain::accept </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classmets_1_1feasible__solution.html">feasible_solution</a> &amp;&#160;</td>
          <td class="paramname"><em>fs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classmets_1_1move.html">move</a> &amp;&#160;</td>
          <td class="paramname"><em>mov</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gol_type&#160;</td>
          <td class="paramname"><em>evaluation</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This is a callback function from the algorithm that tells us that a move was accepted. </p>
<p>You can use this function to update the aspiration criteria based on the current search status. (e.g. record the best cost for a best ever criteria)</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">fs</td><td>The current working solution (after applying move). </td></tr>
    <tr><td class="paramname">mov</td><td>The accepted move (the move just made). </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>True if the move is to be accepted. </dd></dl>

<p>被 <a class="el" href="classmets_1_1best__ever__criteria.html#a718ad912b0fc8690c36ea2861a804fa8">mets::best_ever_criteria</a> 重载.</p>
<div class="fragment"><div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;{</div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;  <span class="keywordflow">if</span>(next_m) next_m-&gt;<a class="code" href="classmets_1_1aspiration__criteria__chain.html#a3d5d9fd8cafb66ffcaafd02c935ed6a2">accept</a>(fs, mov, eval);</div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;}</div>
<div class="ttc" id="aclassmets_1_1aspiration__criteria__chain_html_a3d5d9fd8cafb66ffcaafd02c935ed6a2"><div class="ttname"><a href="classmets_1_1aspiration__criteria__chain.html#a3d5d9fd8cafb66ffcaafd02c935ed6a2">mets::aspiration_criteria_chain::accept</a></div><div class="ttdeci">virtual void accept(feasible_solution &amp;fs, move &amp;mov, gol_type evaluation)</div><div class="ttdoc">This is a callback function from the algorithm that tells us that a move was accepted.</div><div class="ttdef"><b>Definition:</b> tabu-search.hh:581</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="ab0d1235906b40e5542bbd79951bc76b0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0d1235906b40e5542bbd79951bc76b0">&#9670;&nbsp;</a></span>operator()()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool mets::aspiration_criteria_chain::operator() </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classmets_1_1feasible__solution.html">feasible_solution</a> &amp;&#160;</td>
          <td class="paramname"><em>fs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classmets_1_1move.html">move</a> &amp;&#160;</td>
          <td class="paramname"><em>mov</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gol_type&#160;</td>
          <td class="paramname"><em>evaluation</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The function that decides if we shoud accept a tabu move </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">fs</td><td>The current working solution (before applying move). </td></tr>
    <tr><td class="paramname">mov</td><td>The move to be made (the move that is being evaluated). </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>True if the move is to be accepted. </dd></dl>

<p>被 <a class="el" href="classmets_1_1best__ever__criteria.html#a5ce8b69d5be2be972464ee55e1394457">mets::best_ever_criteria</a> 重载.</p>
<div class="fragment"><div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;{</div>
<div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;  <span class="keywordflow">if</span>(next_m)</div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;    <span class="keywordflow">return</span> next_m-&gt;operator()(fs, mov, eval);</div>
<div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;  <span class="keywordflow">else</span></div>
<div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>recognition/include/pcl/recognition/3rdparty/metslib/<a class="el" href="tabu-search_8hh_source.html">tabu-search.hh</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>mets</b></li><li class="navelem"><a class="el" href="classmets_1_1aspiration__criteria__chain.html">aspiration_criteria_chain</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
